function getusername(){
	if($.cookie('username')!='null')
	{
		$('#user').html('<a href="../user/userinfo.html">'+$.cookie('username')+'</a>/<a href="javascript:void(0)" onclick="logout()">注销</a>');
	}
}

function logout() {
	$.cookie('username',null,{path:'/'});
	$.cookie('userid',null,{path:'/'});
	window.location.href="../car/index.html";
}
